export default {
  //  设置本地token操作
  setStorage(state, value) {
    if (value) {
      state.user = true
    }
    // state.user = value
    // localStorage.setItem('token', value)
    console.log(value)
  },
  //  删除本地token操作
  removeStorage(state) {
    state.user = null
    localStorage.removeItem('token')
  },
  // 设置对话框是否显示
  setDialog(state) {
    state.isDialog = !state.isDialog
  }
}
